import axiosInstance from "./axios";
export const getCode = () => {
  console.log(12);
  return axiosInstance({
    url: "/auth/code",
    method: 'get'
  })
}
// 正常登陆
export const login = (requestInfo) => {
  return axiosInstance({
    url: '/auth/login',
    method: 'post',
    data: requestInfo
  })
}
export const loginByToken = (token) => {
  return axiosInstance({
    url: '/auth/loginByToken?token=' + token,
    method: 'post',

  })
}
